<div class="cover_right" style="margin:0px 0px;">
	<div class="topic" style="width:600px; text-align:center;"> DANH SÁCH GIẢNG VIÊN CỦA TRUNG TÂM </div>
    <div class="content" style="width:598px;">
        <table class="tbl" border="1" style="table-layout:auto; width:597px; margin: 10px 0px;" id="tb">
            <thead> 
                <tr style="font-size:13px;"> <td>STT</td> <td>Họ tên</td> <td>Học vị</td> </tr>
            </thead>
            <tbody>
                <?php
                    $query = mysql_query(" SELECT id,name FROM subject WHERE name != '' ORDER BY id ");
                    if(mysql_num_rows($query) > 0)
                    {
                        $i = 1;
                        while($row = mysql_fetch_array($query))
                        {
                            $subject = $row['id'];
                            echo "<tr> <td colspan='3' style='text-align:left;font-weight:bold;'> Môn ".$row['name']." </td> </tr>";
                            $query1 = mysql_query(" SELECT id,name,degree FROM teachers WHERE subject = '{$subject}' ");
                            while($row1 = mysql_fetch_array($query1))
                            {
                                echo "<tr>";
                                    echo "<td> {$i} </td>";
                                    echo "<td> ".$row1['name']." </td>";
                                    echo "<td> ".$row1['degree']." </td>";
                                    $i++;     
                                echo "</tr>";
                            }   
                        }                        
                    }
                ?>
            </tbody>
		</table>
    
    </div>

<div style='margin:20px 0px 10px 0px; width:880px;'>
	<b style="color:#000;"> Tag</b>: 
    	<a href="index.php">luyen thi dai hoc</a>, 
        <a href="index.php">luyện thi đại học ở cần thơ</a>, 
        <a href="index.php">73 hùng vương</a>, 
        <a href="index.php">trung tâm luyện thi 73 hùng vương</a>
</div>

</div>



	